// source --> https://www.epamac.com/wp-content/plugins/chaty/js/cht-front-script.min.js?ver=1615041639 function launch_chaty(){jQuery(".chaty-widget").hasClass("one_widget")||jQuery(".trigger-chaty-button").trigger("click")}function close_chaty(){jQuery("#chaty-inline-popup").hasClass("active")&&jQuery("#chaty-inline-popup .close-chaty-popup").trigger("click"),jQuery(".chaty-widget.chaty-widget-show").length&&jQuery(".chaty-widget.chaty-widget-show").each(function(){jQuery(this).find(".chaty-close-settings").length&&jQuery(this).find(".chaty-close-settings").trigger("click")})}!function(t){var e={};function s(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,s),a.l=!0,a.exports}s.m=t,s.c=e,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="/",s(s.s=10)}({10:function(t,e,s){s(11),t.exports=s(12)},11:function(t,e){!function(t){var e,s=0,i=".i-trigger .chaty-widget-i .svg, .i-trigger .chaty-widget-i .widget-img, .i-trigger .chaty-widget-i .facustom-icon",a=!1;function c(t){return r()&&"click"==chaty_settings.object_settings.click_setting?"none":""}(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(navigator.userAgent)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(navigator.userAgent.substr(0,4)))&&(a=!0);new Date;function n(){jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}function o(t){console.log("fn called"+t);var e="@-webkit-keyframes chaty-animation-shockwave { 0% { transform: scale(1); box-shadow: 0 0 2px rgba("+t+", 0.30), inset 0 0 1px rgba("+t+", 0.30); } 95% { box-shadow: 0 0 50px rgba("+t+", 0), inset 0 0 30px rgba("+t+", 0); } 100% { transform: scale(2.25); } } @keyframes chaty-animation-shockwave { 0% { transform: scale(1); box-shadow: 0 0 2px rgba("+t+", 0.30), inset 0 0 1px rgba("+t+", 0.30); } 95% { box-shadow: 0 0 50px rgba("+t+", 0), inset 0 0 30px rgba("+t+", 0); } 100% { transform: scale(2.25); } }";jQuery("#chaty-advance-css").length||jQuery("body").append("
"),jQuery("#chaty-advance-css").append("")}function r(){var t=g("cta");if(null!=t&&""!=t){t=new Date(t);var e=Math.abs(new Date-t);return Math.floor(e/6e4)<=10}return!1}function g(t){var e=u("chaty_settings"),s=[];if(null!=e&&""!=e&&(s=JSON.parse(e)),s.length>0)for(var i=0;i0)for(var a=0;a=1}return!0}function d(){var t=u("chaty_settings"),e=[];null!=t&&""!=t&&(e=JSON.parse(t));var s=!1;if(e.length>0)for(var i=0;i1?jQuery(i).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now"):1==t&&(i=".chaty-main-widget .svg, .chaty-main-widget img, .chaty-main-widget .facustom-icon",jQuery(i).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),jQuery(i).addClass("chaty-animation-"+chaty_settings.object_settings.animation_class).addClass("start-now")):(i=".i-trigger .chaty-widget-i .wrap-svg",jQuery(".i-trigger .chaty-widget-i .wrap-svg").length,jQuery(i).removeClass("chaty-animation-sheen").removeClass("start-now"),jQuery(i).addClass("chaty-animation-sheen").addClass("start-now"))),"open"==chaty_settings.object_settings.display_state&&("no"==chaty_settings.object_settings.has_close_button?t>1&&(w(),jQuery(".chaty-widget").find(".i-trigger-open").removeClass("active_clos"),jQuery(".chaty-widget").find(".i-trigger-open").trigger("click"),jQuery(".chaty-widget-is").addClass("has-no-close-btn"),jQuery(".i-trigger").remove()):t>1&&(w(),jQuery(".chaty-widget").find(".i-trigger-open").removeClass("active_clos"),jQuery(".chaty-widget").find(".i-trigger-open").trigger("click"))),jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}function w(){l("chaty-animation"),jQuery(".chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("chaty-animation-"+chaty_settings.object_settings.animation_class).removeClass("start-now"),jQuery(".start-now").removeClass("start-now"),chaty_settings.object_settings.animation_class=""}jQuery(document).ready(function(){a?jQuery("body").addClass("chaty-in-mobile"):jQuery("body").addClass("chaty-in-desktop"),c(),token="",jQuery(document).ready(function(){"true"==(e=chaty_settings).object_settings.active&&function(e,s){var i=e.object_settings.device,a="";if("right"==e.object_settings.position)a="left: auto;bottom: 25px; right: 25px;";else if("left"==e.object_settings.position)a="right: auto; bottom: 25px; left: 25px;";else if("custom"==e.object_settings.position){var n=e.object_settings.pos_side,o=e.object_settings.bot,r=e.object_settings.side;a="right"===n?"left: auto; bottom: "+o+"px; right: "+r+"px":"left: "+r+"px; bottom: "+o+"px; right: auto"}var g=e.object_settings.cta,l="",d=e.object_settings.social;if(Object.keys(d).length>=1&&(l='
',l+='
'),l+=function(e){var s="",i=0;return t.each(e.object_settings.social,function(t,a){if(e.object_settings.isPRO&&jQuery("body").addClass("has-pro-version"),!e.object_settings.isPRO&&"3"==++i)return!1;extra_class="","1"!=e.object_settings.analytics&&1!=e.object_settings.analytics||(extra_class+=" update-analytics ");var c=1==e.object_settings.social[t].is_desktop?"is-in-desktop":"",n=1==e.object_settings.social[t].is_mobile?"is-in-mobile":"",o=1==e.object_settings.is_mobile?e.object_settings.social[t].mobile_target:e.object_settings.social[t].desktop_target;if(jQuery("body").hasClass("chaty-in-mobile")&&(e.object_settings.social[t].href_url=e.object_settings.social[t].mobile_url),"viber"==e.object_settings.social[t].social_channel){if(jQuery("body").hasClass("chaty-in-mobile")){var r=e.object_settings.social[t].href_url;isNaN(r)||(r=r.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(r="+"+r)),e.object_settings.social[t].href_url=r}e.object_settings.social[t].href_url="viber://chat?number="+e.object_settings.social[t].href_url}1==parseInt(e.object_settings.social[t].has_custom_popup)&&("whatsapp"==e.object_settings.social[t].channel_type?(e.object_settings.social[t].is_default_open&&h("cht_whatsapp_window")&&(extra_class+=" open-it-by-default"),o="",e.object_settings.social[t].mobile_target="",e.object_settings.social[t].desktop_target="",extra_class+=" has-custom-chaty-popup whatsapp-button"):"contact_us"==e.object_settings.social[t].channel_type&&(extra_class+=" has-custom-chaty-popup whatsapp-button"));var g="";""!=e.object_settings.social[t].on_click&&(g=' onclick="'+e.object_settings.social[t].on_click+'"'),socialString='
',bgColor="",""!=e.object_settings.social[t].bg_color&&(socialString+="",bgColor="style='background-color: "+e.object_settings.social[t].bg_color+";'"),socialString+="",socialString+=""+e.object_settings.social[t].title+"",""!=e.object_settings.social[t].img_url?socialString+=""+e.object_settings.social[t].title+"":socialString+=e.object_settings.social[t].default_icon,socialString+="",socialString+="

"+e.object_settings.social[t].title+"

",socialString+="
",s+=socialString}),s}(e),d=e.object_settings.social,Object.keys(d).length>=1){l+="
",l+='
';var y=c(),u=current_url=window.location.origin;if(u=(u=u.replace("https://","")).replace("http://",""),""!=g&&"none"!=y)var p="true";else p="no-tooltip";"click"!=chaty_settings.object_settings.click_setting&&(p=!0),l+='
',l+=function(t){switch(t.object_settings.widget_type){case"chat-image":if(t.object_settings.widget_img.length>1)return'
';case"chat-smile":return'';case"chat-bubble":return'';case"chat-db":return'';default:return''}}(e),y=c(),""!=g&&"none"!=y&&(l+='
',l+=g,l+="
"),l+="
",l+='
',""==e.object_settings.close_img?(l+='',l+='',l+='',l+='',l+=""):l+=""+e.object_settings.close_text+"",l+='
',l+=e.object_settings.close_text,l+="
",l+="
",l+="
",0===s.length&&!e.object_settings.isPRO&&(l+=""),l+="
"}t("body").append(l)}(e,token),function(){var s=t(".chaty-widget"),i=e.object_settings.widget_size?e.object_settings.widget_size:54,a=+e.object_settings.widget_size+8;function o(){s.position().top;var t=s.find(".chaty-widget-is .chaty-widget-i").length;if((t=jQuery("body").hasClass("chaty-in-desktop")?s.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:s.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)*a>jQuery(window).height()-(chaty_settings.object_settings.widget_size+8)){var e=Math.round(Math.sqrt(t)),i=Math.ceil(Math.sqrt(t));s.find(".chaty-widget-is").css({height:i*a,width:e*a}),g(i),s.find("span:not(.cht-pending-message)").css({height:i*a,width:e*a}),g(i),s.find("img").css({height:i*a,width:e*a}),g(i)}else g()}function r(){"left"===e.object_settings.position&&s.addClass("chaty-widget-is-right"),"custom"===e.object_settings.position&&"left"===e.object_settings.pos_side&&s.addClass("chaty-widget-is-right")}function g(t){var e;e=jQuery("body").hasClass("chaty-in-desktop")?s.find(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:s.find(".chaty-widget-is .chaty-widget-i.is-in-mobile").length,s.find(".chaty-widget-i").css({height:i+"px",width:i+"px"}),s.find("img").css({height:i+"px",width:i+"px"}),s.find("span:not(.cht-pending-message)").css({height:i+"px",width:i+"px"}),s.find(".chaty-widget-is").css({top:"-"+100*e+"%"}),s.find(".chaty-widget-is").height(e*(parseInt(i)+8)),s.find(".chaty-widget-is").width(parseInt(i)+8),"horizontal"==chaty_settings.object_settings.mode?(s.find(".chaty-widget-is").css({top:"0"}),s.find(".chaty-widget-is").width(e*(parseInt(i)+8)),s.find(".chaty-widget-is").height(parseInt(i)+8)):(s.find(".chaty-widget-is").height(e*(parseInt(i)+8)),s.find(".chaty-widget-is").width(parseInt(i)+8))}jQuery(".open-it-by-default").length&&jQuery(".open-it-by-default").trigger("click"),r(),o(),jQuery(window).resize(function(){o(),1==Object.keys(e.object_settings.social).length&&(jQuery(".chaty-widget").addClass("chaty-widget-show"),jQuery(".chaty-widget-is").css("top","auto")),jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show")}),t(".chaty-widget-i.facebook").mouseenter(function(){t(".facebook_two_mess").css({opacity:"1","z-index":"1"}),t(this).addClass("before")}),t(".chaty-widget-i.facebook").mouseleave(function(){t(".facebook_two_mess").css({opacity:"0","z-index":"1"}),t(this).removeClass("before")}),t(".chaty-widget-i.facebook").on("click",function(){t(this).addClass("active"),t(".facebook_two_mess").hide(),jQuery(".chaty-widget .get a").hide(),t(this).children(".face_title").css({opacity:"1","z-index":"2"}).show(),t(".chaty-widget").hasClass("one_widget")?t(".chaty-widget").hasClass("chaty-widget-is-right")?t(".face_title").css({top:"calc(100% - 447px)",left:"20px"}):t(".face_title").css({top:"calc(100% - 447px)",left:"auto",right:"20px"}):(t(".facebook_two_mess").css({opacity:"0","z-index":"10001"}),t(".ico_d").hide(),t(".chaty-widget .chaty-widget-i").css({"box-shadow":"0px 3px 6px rgba(0,0,0,0)"}),t(".chaty-widget").hasClass("one_widget")||t(".i-trigger").hide())}),t(".i-trigger-close").on("click",function(e){e.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(s.removeClass("chaty-widget-show"),s.addClass("none-widget-show"))}),t("body").on("click",".close_facebook",function(){t(".facebook_two_mess").show(),jQuery(".chaty-widget .get a").show(),t(".chaty-widget-i.facebook").removeClass("active"),t(this).parent().parent().css({opacity:"1"}).hide(),t(".i-trigger").show(),t(".chaty-widget-is .chaty-widget-i svg").show()}),t(".i-trigger-close").on("click",function(e){t(".i-trigger-open").addClass("active_clos"),e.preventDefault(),t(".chaty-widget-i.facebook").hasClass("active")||(s.removeClass("chaty-widget-show"),s.addClass("none-widget-show"))}),t("body").on("click",".update-analytics",function(t){if(channelName=jQuery(this).attr("data-channel"),null!=channelName&&""!=channelName)if(window.hasOwnProperty("gtag"))gtag("event","chaty_"+channelName,{eventCategory:"chaty_"+channelName,event_action:"chaty_"+channelName});else if(window.hasOwnProperty("ga")){var e=window.ga.getAll()[0];e&&e.send("event","click",{eventCategory:"chaty_"+channelName,eventAction:"chaty_"+channelName})}}),t("body").on("click",".wechat",function(){var t=jQuery(".chaty-widget .chaty-widget-i.wechat").attr("data-code");null!=t&&""!=t&&(jQuery("#wechat-qr-code").length||(htmlString="
",htmlString+='
WeChat
',htmlString+="
",jQuery("body").append(htmlString)),jQuery("#wechat-qr-code").show())});var l=c();"hover"==chaty_settings.object_settings.display_state?s.find(".i-trigger-open").mouseenter(function(e){e.stopPropagation(),w(),n(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||s.hasClass("one_widget")||(r(),t(s).hasClass("chaty-widget-show")||(s.addClass("chaty-widget-show"),s.removeClass("none-widget-show"))),jQuery(".chaty-widget").hasClass("one_widget")&&jQuery(".chaty-widget").removeClass("chaty-widget-show"),"click"==chaty_settings.object_settings.click_setting&&(jQuery(".i-trigger").hasClass("one-widget")||jQuery("body .chaty-widget-i-title.true").remove())}):s.find(".i-trigger-open").click(function(e){e.stopPropagation(),w(),n(),t(".chaty-widget-is").removeAttr("id"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||s.hasClass("one_widget")||(r(),t(s).hasClass("chaty-widget-show")||(s.addClass("chaty-widget-show"),s.removeClass("none-widget-show"))),n(),"click"==chaty_settings.object_settings.click_setting&&(jQuery(".i-trigger").hasClass("one-widget")||jQuery("body .chaty-widget-i-title.true").remove()),jQuery(".cht-pending-message").remove()}),t(".one_widget").on("click",function(){w(),jQuery(".cht-pending-message").remove()}),s.find(".i-trigger-open").on("click",function(){jQuery(".cht-pending-message").remove(),"none"!=l&&(t(".chaty-widget").hasClass(".one_widget")||t(".i-trigger-open .chaty-widget-i-title1").detach()),"click"==chaty_settings.object_settings.click_setting&&t(".i-trigger-open").addClass("no-tooltip"),t(this).hasClass("active_clos")||t(".chaty-widget-i.facebook").hasClass("active")||s.hasClass("one_widget")||(r(),t(s).hasClass("chaty-widget-show")||(s.addClass("chaty-widget-show"),s.removeClass("none-widget-show"))),w()}),s.find(".i-trigger-open").mouseenter(function(){"click"==chaty_settings.object_settings.click_setting&&t(this).addClass("no-tooltip"),t(".i-trigger-open").removeClass("active_clos"),o()}),s.find(".chaty-widget-is").mouseleave(function(){t(".i-trigger-open").removeClass("active_clos"),t(".chaty-widget-i.facebook").hasClass("active")}),1===Object.keys(e.object_settings.social).length&&s.find(".i-trigger-open").on("touchstart",function(e){"use strict";t(this).find(".chaty-widget-i").toggleClass("hover")}),1==Object.keys(e.object_settings.social).length&&(jQuery(".chaty-widget").addClass("chaty-widget-show"),jQuery(".chaty-widget-is").css("top","auto"),jQuery(".chaty-widget-is").css("z-index","10001"),jQuery(".chaty-widget-i.i-trigger-close, .i-trigger.chaty-widget-i").remove(),jQuery(".chaty-widget .get a").css("top","-10px"),jQuery(".chaty-widget").addClass("one_widget"),jQuery(document).on("click",".chaty-widget-i",function(){jQuery(".i-trigger").hasClass("one-widget")||(jQuery(".chaty-widget-i:first .chaty-widget-i-title:last").hide(),jQuery("body").addClass("hide-cht-widget"))}),jQuery("body").append(""))}(),t(document).ready(function(){1!==Object.keys(e.object_settings.social).length||!e.object_settings.social.snapchat&&!e.object_settings.social.wechat||e.object_settings.cta||(t(".chaty-widget-i-1title").detach(),t(".chaty-widget-i").addClass("bofore_del")),t(".chaty-widget-i-title").hasClass("one_go")&&(t(".chaty-widget-i-title p").html(t(".chaty-widget-i-title.one_go").html()),"none"==c()&&(t(".chaty-widget-i-title").hasClass("face_title")?(t(".facebook_two_mess").detach(),t(".chaty-widget-i").addClass("bofore_del")):(t(".chaty-widget-i-title11").detach(),t(".chaty-widget-i").addClass("bofore_del")))),window.matchMedia("only screen and (max-width: 760px)").matches&&t(".i-trigger-open").addClass("active_clos"),jQuery(".chaty-widget-i-title").each(function(){""==jQuery(this).text()&&jQuery(this).remove()})}),t(document).ready(function(){var i=0;0==(i=jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop").length:jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile").length)?jQuery(".chaty-widget").addClass("hide-widget").removeClass("desktop_active").removeClass("mobile_active"):(jQuery("body").hasClass("chaty-in-desktop")?jQuery(".chaty-widget").removeClass("hide-widget").addClass("desktop_active"):jQuery(".chaty-widget").removeClass("hide-widget").addClass("mobile_active"),1==i?(jQuery(".chaty-close-settings").hide(),jQuery("body").hasClass("chaty-in-desktop")?(htmlToAdd=jQuery(".chaty-widget-is .chaty-widget-i.is-in-desktop:first").clone(),jQuery(".i-trigger").html(htmlToAdd)):(htmlToAdd=jQuery(".chaty-widget-is .chaty-widget-i.is-in-mobile:first").clone(),jQuery(".i-trigger").html(htmlToAdd)),r()?(jQuery(".i-trigger").addClass("show-channel"),jQuery("")):(jQuery(".i-trigger").attr("data-title",jQuery(".chaty-widget-is .chaty-widget-i-title p").html()),jQuery(".i-trigger .chaty-widget-i-title p").html(chaty_settings.object_settings.cta)),jQuery(".chaty-widget").addClass("one_widget"),jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function(){n(),"click"==chaty_settings.object_settings.click_setting&&(jQuery(".i-trigger").hasClass("one-widget")||(jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow")),jQuery(".chaty-widget").removeClass("chaty-widget-show")),jQuery(".i-trigger").hasClass("one-widget")||d(),w()}),jQuery(".chaty-widget").removeClass("chaty-widget-show"),jQuery(".i-trigger").addClass("one-widget"),r(),o(jQuery(".i-trigger .chaty-widget-i:first").data("rgb"))):(jQuery(".chaty-widget").removeClass("one_widget"),"click"==chaty_settings.object_settings.click_setting&&jQuery(".i-trigger .chaty-main-widget").remove(),jQuery(".chaty-close-settings").show(),jQuery(".chaty-widget-i-title").removeClass("hide-it"),jQuery(".chaty-widget.one_widget, .i-trigger, .chaty-widget-i").mouseenter(function(){n(),jQuery(".i-trigger").hasClass("one-widget")||(d(),jQuery(".i-trigger").hasClass("one-widget")||jQuery(".i-trigger .chaty-widget-i-title").addClass("hide-it")),w()}),"open"==chaty_settings.object_settings.display_state&&t(".i-trigger-open").addClass("no-tooltip"),o(chaty_settings.object_settings.rgb_color))),jQuery(document).on("click",".i-trigger.one-widget",function(){d()});var a,g,l,_=0;if(1==parseInt(chaty_settings.object_settings.display_conditions)){var j=chaty_settings.object_settings.display_rules;if(j.length>0){var m=new Date;m.setHours(m.getHours()+chaty_settings.object_settings.gmt);for(var b=m.getUTCHours(),f=m.getUTCMinutes(),v=m.getUTCDay(),Q=0;Q=0&&j[Q].days<=6?j[Q].days==v&&(k=1):7==j[Q].days?v>=0&&v<=4&&(k=1):8==j[Q].days?v>=1&&v<=5&&(k=1):9==j[Q].days&&(5!=v&&6!=v||(k=1)),1==k&&(b>j[Q].start_hours&&b=j[Q].start_min&&(C=1):b>j[Q].start_hours&&b==j[Q].end_hours?f<=j[Q].end_min&&(C=1):b==j[Q].start_hours&&b==j[Q].end_hours&&f>=j[Q].start_min&&f<=j[Q].end_min&&(C=1),1==C&&f>=j[Q].start_min&&f<=j[Q].end_min&&1),1==C&&1==k&&(_=1),1==_&&(Q=j.length+1)}}else _=1}else _=1;if(1==i&&(""!=c()&&("click"==chaty_settings.object_settings.click_setting&&(jQuery(".i-trigger").hasClass("one-widget")||(jQuery(".chaty-widget-i-title").remove(),jQuery(".chaty-widget").addClass("hide-tooltip-arrow"))),setInterval(function(){},1e4)),jQuery(".chaty-main-widget").addClass("i-trigger-open").addClass("single-button"),jQuery(".chaty-widget-show .i-trigger-open svg").css("transform","rotate(0deg)"),jQuery(".chaty-widget").removeClass("chaty-widget-show")),""!=chaty_settings.object_settings.animation_class&&("sheen"!=chaty_settings.object_settings.animation_class?jQuery(".i-trigger .chaty-widget-i svg").wrap(function(){return"
"}):jQuery(".i-trigger .chaty-widget-i .wrap-svg").length||jQuery(".i-trigger .chaty-widget-i svg").wrap(function(){return"
"})),r()||("on"==chaty_settings.object_settings.pending_messages&&("sheen"!=chaty_settings.object_settings.animation_class?jQuery(".i-trigger .i-trigger-open .svg, .i-trigger .i-trigger-open.single-button .svg").length?jQuery(".i-trigger .i-trigger-open .svg, .i-trigger .i-trigger-open.single-button .svg").append(""+chaty_settings.object_settings.number_of_messages+""):jQuery(".i-trigger .i-trigger-open.single-button svg").length?jQuery(".i-trigger .i-trigger-open.single-button svg").after(""+chaty_settings.object_settings.number_of_messages+""):jQuery(".i-trigger .i-trigger-open, .i-trigger .i-trigger-open.single-button svg").after(""+chaty_settings.object_settings.number_of_messages+""):jQuery(".i-trigger .i-trigger-open, .i-trigger .i-trigger-open.single-button").after(""+chaty_settings.object_settings.number_of_messages+""),jQuery(".cht-pending-message").css("color",chaty_settings.object_settings.number_color),jQuery(".cht-pending-message").css("background",chaty_settings.object_settings.number_bg_color)),jQuery(document).on("click",".i-trigger .i-trigger-open, .i-trigger.one-widget",function(){if(jQuery(".cht-pending-message").remove(),jQuery(this).hasClass("one-widget")){jQuery(this).addClass("show-channel");var t=jQuery(this).data("title");jQuery(this).find(".chaty-widget-i-title").find("p").html(t)}})),jQuery(document).on("click",".i-trigger.one-widget",function(){if(jQuery(this).hasClass("one-widget")){jQuery(this).addClass("show-channel");var t=jQuery(this).data("title");console.log("tooltipText: "+t),jQuery(this).find(".chaty-widget-i-title").find("p").html(t)}}),jQuery("chaty-main-widget").mouseenter(function(){jQuery(".i-trigger").hasClass("one-widget")||d()}),1==_)if(h("cta_widget_status"))if("no"==chaty_settings.object_settings.time_trigger&&"no"==chaty_settings.object_settings.exit_intent&&"no"==chaty_settings.object_settings.on_page_scroll)jQuery(".chaty-widget").removeClass("hide-widget"),"open"==chaty_settings.object_settings.display_state&&"no"==chaty_settings.object_settings.has_close_button?chaty_settings.object_settings.has_close_button="no":(chaty_settings.object_settings.display_state="hover",chaty_settings.object_settings.has_close_button="yes"),p();else{if(jQuery(".chaty-widget").addClass("hide-widget"),"yes"==chaty_settings.object_settings.time_trigger&&setTimeout(function(){s||(jQuery(".chaty-widget").removeClass("hide-widget"),p())},1e3*parseInt(chaty_settings.object_settings.trigger_time)),"yes"==chaty_settings.object_settings.exit_intent){a=document,g="mouseout",l=function(t){null==t.toElement&&null==t.relatedTarget&&null==u("cta_exit_intent_shown")&&(y("cta_exit_intent_shown","yes",1),s=!0,jQuery(".chaty-widget").removeClass("hide-widget"),jQuery(".chaty-widget").addClass("chaty-animation-widget"),jQuery(".chaty-animation-widget").append("
"),"open"==chaty_settings.object_settings.display_state&&"no"==chaty_settings.object_settings.has_close_button?chaty_settings.object_settings.has_close_button="no":(chaty_settings.object_settings.display_state="open",chaty_settings.object_settings.has_close_button="yes"),p(),"left"==chaty_settings.object_settings.position?jQuery(".chaty-widget").addClass("left-position"):"right"==chaty_settings.object_settings.position?jQuery(".chaty-widget").addClass("right-position"):"custom"==chaty_settings.object_settings.position&&("left"==e.object_settings.pos_side?jQuery(".chaty-widget").addClass("left-position"):jQuery(".chaty-widget").addClass("right-position")),w(),setTimeout(function(){jQuery(".chaty-animation-widget").addClass("active")},100),setTimeout(function(){jQuery(".chaty-nav").remove()},2500))},a.addEventListener?a.addEventListener(g,l,!1):a.attachEvent&&a.attachEvent("on"+g,l)}"yes"==chaty_settings.object_settings.on_page_scroll&&parseInt(chaty_settings.object_settings.page_scroll)>0&&jQuery(window).scroll(function(){if(!s){var t=jQuery(document).height()-jQuery(window).height(),e=jQuery(window).scrollTop();0!=e&&e/t*100>=parseInt(chaty_settings.object_settings.page_scroll)&&(jQuery(".chaty-widget").removeClass("hide-widget"),p())}})}else jQuery(".chaty-widget").removeClass("hide-widget"),p();else jQuery(".chaty-widget").addClass("hide-widget");jQuery(".chaty-widget-i-title").length&&jQuery(".chaty-widget-i-title").each(function(){""==jQuery.trim(jQuery(this).text())&&(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery(this).remove())})}),jQuery(".chaty-widget-i-title").each(function(){""==jQuery(this).text()&&(jQuery(this).closest(".chaty-widget-i").addClass("hide-chaty-arrow"),jQuery(this).remove())}),jQuery(".chaty-widget").hasClass("one_widget")||jQuery("body").append("
"),jQuery("body").addClass(chaty_settings.object_settings.mode+"-cht-menu"),jQuery("body").addClass(chaty_settings.object_settings.position+"-cht-position")})}),jQuery(document).on("click",".trigger-chaty-button",function(){jQuery(".chaty-widget").removeClass("hide-widget"),p(),!jQuery(".chaty-widget").hasClass("none-widget-show")&&jQuery(".chaty-widget").hasClass("chaty-widget-show")||jQuery(".i-trigger-open").trigger("click")}),jQuery(document).on("click",".has-custom-chaty-popup.whatsapp-button",function(t){if(jQuery("#chaty-inline-popup").length){var e=jQuery(this).data("data-index");jQuery("#chaty-widget-"+e).removeClass("chaty-popup-open"),jQuery(".chaty-popup-open").removeClass("chaty-popup-open"),jQuery(".chaty-widget.hide-block").removeClass("active")}if(jQuery(this).hasClass("open-it-by-default")&&t.preventDefault(),jQuery("#chaty-inline-popup").remove(),null!=jQuery(this).attr("data-popup")&&""!=jQuery(this).attr("data-popup")){e="";jQuery(".chaty-widget").addClass("hide-block"),jQuery(".chaty-widget").addClass("chaty-popup-open");var s="
";s+=jQuery(this).attr("data-popup"),jQuery("body").append(s),jQuery(".chaty-inline-popup .default-value").length&&(jQuery(".chaty-whatsapp-msg").val(jQuery(".chaty-inline-popup .default-value").text()),jQuery(".chaty-whatsapp-phone").val(jQuery(".chaty-inline-popup .default-msg-phone").text()),jQuery(".chaty-whatsapp-message").html(jQuery(".chaty-inline-popup .default-msg-value").html())),jQuery(".chaty-widget").addClass("active"),setTimeout(function(){jQuery("#chaty-inline-popup").addClass("active")},150),jQuery("body").hasClass("chaty-in-mobile")||jQuery(".chaty-whatsapp-msg").focus()}a&&jQuery(".whatsapp-chaty-form").prop("target","")}),jQuery(document).on("click",".close-chaty-popup, .close-chaty-box",function(){jQuery(this).hasClass("is-whatsapp-btn")&&l("cht_whatsapp_window"),jQuery("#chaty-inline-popup").removeClass("active"),jQuery(".chaty-widget").removeClass("chaty-popup-open"),setTimeout(function(){jQuery(".chaty-widget.hide-block").removeClass("active")},250)}),jQuery(document).on("submit",".whatsapp-chaty-form",function(t){if(l("cht_whatsapp_window"),jQuery("#chaty-inline-popup").removeClass("active"),jQuery(".chaty-widget").removeClass("chaty-popup-open"),setTimeout(function(){jQuery(".chaty-widget.hide-block").removeClass("active")},250),jQuery("body").hasClass("chaty-in-mobile"))return t.preventDefault(),window.location="https://wa.me/"+jQuery(this).find(".chaty-whatsapp-phone").val()+"?text="+jQuery(this).find(".chaty-whatsapp-msg").val(),!1}),jQuery(document).on("submit",".chaty-contact-form-data",function(t){var e=0;if(jQuery(".has-chaty-error").removeClass("has-chaty-error"),jQuery(".chaty-error-msg").remove(),jQuery(".chaty-ajax-error-message").remove(),jQuery(".chaty-ajax-success-message").remove(),jQuery(this).find(".is-required").each(function(){""==jQuery.trim(jQuery(this).val())&&(e++,jQuery(this).addClass("has-chaty-error"))}),0==e){var s=jQuery(this);jQuery(".chaty-contact-submit-btn").attr("disabled",!0),jQuery.ajax({url:chaty_settings.ajax_url,data:{action:"chaty_front_form_save_data",name:s.find(".chaty-field-name").length?s.find(".chaty-field-name").val():"",email:s.find(".chaty-field-email").length?s.find(".chaty-field-email").val():"",phone:s.find(".chaty-field-phone").length?s.find(".chaty-field-phone").val():"",message:s.find(".chaty-field-message").length?s.find(".chaty-field-message").val():"",nonce:s.find(".chaty-field-nonce").length?s.find(".chaty-field-nonce").val():"",channel:s.find(".chaty-field-channel").length?s.find(".chaty-field-channel").val():"",widget:s.find(".chaty-field-widget").length?s.find(".chaty-field-widget").val():"",ref_url:window.location.href},type:"post",async:!0,defer:!0,success:function(t){if(t=jQuery.parseJSON(t),jQuery(".chaty-ajax-error-message").remove(),jQuery(".chaty-ajax-success-message").remove(),jQuery(".chaty-contact-submit-btn").attr("disabled",!1),1==t.status)jQuery(".chaty-contact-footer").append("
"+t.message+"
"),jQuery(".chaty-field-name, .chaty-field-email, .chaty-field-message").val(""),"yes"==t.redirect_action&&("yes"==t.link_in_new_tab?window.open(t.redirect_link,"_blank"):window.location=t.redirect_link),"yes"==t.close_form_after&&setTimeout(function(){jQuery("#chaty-inline-popup").removeClass("active"),jQuery(".chaty-widget").removeClass("chaty-popup-open"),setTimeout(function(){jQuery(".chaty-widget.hide-block").removeClass("active")},250)},1e3*parseInt(t.close_form_after_seconds));else if(1==t.error){if(t.errors.length)for(var e=0;e"+t.errors[e].message+"")}else jQuery(".chaty-contact-footer").append("
"+t.message+"
")}})}else jQuery(".has-chaty-error:first").focus();return!1})}(jQuery)},12:function(t,e){}}); // source --> https://www.epamac.com/wp-content/plugins/easy-facebook-likebox/facebook/frontend/assets/js/esf-free-popup.min.js?ver=6.5.4 !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h,i="Close",j="BeforeClose",k="AfterClose",l="BeforeAppend",m="MarkupParse",n="Open",o="Change",p="esfp",q="."+p,r="esfp-ready",s="esfp-removing",t="esfp-prevent-close",u=function(){},v=!!window.jQuery,w=a(window),x=function(a,c){b.ev.on(p+a+q,c)},y=function(b,c,d,e){var f=document.createElement("div");return f.className="esfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},z=function(c,d){b.ev.triggerHandler(p+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},A=function(c){return c===h&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),h=c),b.currTemplate.closeBtn},B=function(){a.esfFreePopup.instance||(b=new u,b.init(),a.esfFreePopup.instance=b)},C=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};u.prototype={constructor:u,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=C(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),e=a(document),b.popupsCache={}},open:function(c){d||(d=a(document.body));var f;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var h,i=c.items;for(f=0;f(a||w.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),z(m,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(q+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith(''):d.attr(e[1],c)}}else b.find(q+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.esfFreePopup={instance:null,proto:u.prototype,modules:[],open:function(b,c){return B(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.esfFreePopup.instance&&a.esfFreePopup.instance.close()},registerModule:function(b,c){c.options&&(a.esfFreePopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.esfFreePopup=function(c){B();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=v?d.data("esfFreePopup"):d[0].esfFreePopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({esfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),v?d.data("esfFreePopup",c):d[0].esfFreePopup=c,b.addGroup(d,c);return d};var D,E,F,G="inline",H=function(){F&&(E.after(F.addClass(D)).detach(),F=null)};a.esfFreePopup.registerModule(G,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(G),x(i+"."+G,function(){H()})},getInline:function(c,d){if(H(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(E||(D=e.hiddenClass,E=y(D),D="esfp-"+D),F=f.after(E).detach().removeClass(D)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var I,J="ajax",K=function(){I&&d.removeClass(I)},L=function(){K(),b.req&&b.req.abort()};a.esfFreePopup.registerModule(J,{options:{settings:null,cursor:"esfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){b.types.push(J),I=b.st.ajax.cursor,x(i+"."+J,L),x("BeforeChange."+J,L)},getAjax:function(c){I&&d.addClass(I),b.updateStatus("loading");var e=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};z("ParseAjax",g),b.appendContent(a(g.data),J),c.finished=!0,K(),b._setFocus(),setTimeout(function(){b.wrap.addClass(r)},16),b.updateStatus("ready"),z("AjaxContentAdded")},error:function(){K(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(e),""}}});var M,N=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.esfFreePopup.registerModule("image",{options:{markup:'
',cursor:"esfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var a=b.st.image,c=".image";b.types.push("image"),x(n+c,function(){"image"===b.currItem.type&&a.cursor&&d.addClass(a.cursor)}),x(i+c,function(){a.cursor&&d.removeClass(a.cursor),w.off("resize"+q)}),x("Resize"+c,b.resizeImage),b.isLowIE&&x("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,M&&clearInterval(M),a.isCheckingImgSize=!1,z("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("esfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){M&&clearInterval(M),M=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(M),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".esfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,z("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".esfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".esfp-img");if(i.length){var j=document.createElement("img");j.className="esfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.esfploader",f).on("error.esfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:N(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(M&&clearInterval(M),c.loadError?(d.addClass("esfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("esfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("esfp-loading"),b.findImageSize(c)),d)}}});var O,P=function(){return void 0===O&&(O=void 0!==document.createElement("p").style.MozTransform),O};a.esfFreePopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,h=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("esfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};x("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=h(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,z("ZoomAnimationEnded")},16)},g)},16)}}),x(j+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=h(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),x(i+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(v?d.innerHeight():d[0].offsetHeight)-g-f};return P()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var Q="iframe",R="//about:blank",S=function(a){if(b.currTemplate[Q]){var c=b.currTemplate[Q].find("iframe");c.length&&(a||(c[0].src=R),b.isIE8&&c.css("display",a?"block":"none"))}};a.esfFreePopup.registerModule(Q,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(Q),x("BeforeChange",function(a,b,c){b!==c&&(b===Q?S():c===Q&&S(!0))}),x(i+"."+Q,function(){S()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var T=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},U=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.esfFreePopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,d=".esfp-gallery",f=Boolean(a.fn.esfpFastClick);return b.direction=!0,c&&c.enabled?(g+=" esfp-gallery",x(n+d,function(){c.navigateByImgClick&&b.wrap.on("click"+d,".esfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),e.on("keydown"+d,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),x("UpdateStatus"+d,function(a,c){c.text&&(c.text=U(c.text,b.currItem.index,b.items.length))}),x(m+d,function(a,d,e,f){var g=b.items.length;e.counter=g>1?U(c.tCounter,f.index,g):""}),x("BuildControls"+d,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(t),g=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(t),h=f?"esfpFastClick":"click";e[h](function(){b.prev()}),g[h](function(){b.next()}),b.isIE7&&(y("b",e[0],!1,!0),y("a",e[0],!1,!0),y("b",g[0],!1,!0),y("a",g[0],!1,!0)),b.container.append(e.add(g))}}),x(o+d,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void x(i+d,function(){e.off(d),b.wrap.off("click"+d),b.arrowLeft&&f&&b.arrowLeft.add(b.arrowRight).destroyesfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=T(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=T(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=T(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),z("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.esfploader",function(){d.hasSize=!0}).on("error.esfploader",function(){d.hasSize=!0,d.loadError=!0,z("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var V="retina";a.esfFreePopup.registerModule(V,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(x("ImageHasSize."+V,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),x("ElementParse."+V,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){w.off("touchmove"+f+" touchend"+f)},e="esfpFastClick",f="."+e;a.fn.esfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,w.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyesfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&w.off("touchmove"+f+" touchend"+f)}}(),B()});